const controller = require('../controllers/test');
const auth = require('../middlewares/auth')
const router = require('koa-router')();
// 发表评论需要权限 accessToken  
// auth 中间件  抽离鉴权功能，middlewares
// 1. accessToken -> json uid 
// 2. 任务继续交给控制器 next 
// 3. 拿到 uid
router.post('/comment',auth,controller.comment);

module.exports = router.routes();